import service from '@/utils/request'
// @Tags LsGoodClass
// @Summary 创建lsGoodClass表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGoodClass true "创建lsGoodClass表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lsGoodClass/createLsGoodClass [post]
export const createLsGoodClass = (data) => {
  return service({
    url: '/lsGoodClass/createLsGoodClass',
    method: 'post',
    data
  })
}

// @Tags LsGoodClass
// @Summary 删除lsGoodClass表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGoodClass true "删除lsGoodClass表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsGoodClass/deleteLsGoodClass [delete]
export const deleteLsGoodClass = (params) => {
  return service({
    url: '/lsGoodClass/deleteLsGoodClass',
    method: 'delete',
    params
  })
}

// @Tags LsGoodClass
// @Summary 批量删除lsGoodClass表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除lsGoodClass表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsGoodClass/deleteLsGoodClass [delete]
export const deleteLsGoodClassByIds = (params) => {
  return service({
    url: '/lsGoodClass/deleteLsGoodClassByIds',
    method: 'delete',
    params
  })
}

// @Tags LsGoodClass
// @Summary 更新lsGoodClass表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGoodClass true "更新lsGoodClass表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lsGoodClass/updateLsGoodClass [put]
export const updateLsGoodClass = (data) => {
  return service({
    url: '/lsGoodClass/updateLsGoodClass',
    method: 'put',
    data
  })
}

// @Tags LsGoodClass
// @Summary 用id查询lsGoodClass表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LsGoodClass true "用id查询lsGoodClass表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lsGoodClass/findLsGoodClass [get]
export const findLsGoodClass = (params) => {
  return service({
    url: '/lsGoodClass/findLsGoodClass',
    method: 'get',
    params
  })
}

// @Tags LsGoodClass
// @Summary 分页获取lsGoodClass表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取lsGoodClass表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lsGoodClass/getLsGoodClassList [get]
export const getLsGoodClassList = (params) => {
  return service({
    url: '/lsGoodClass/getLsGoodClassList',
    method: 'get',
    params
  })
}

// @Tags LsGoodClass
// @Summary 不需要鉴权的lsGoodClass表接口
// @Accept application/json
// @Produce application/json
// @Param data query goodclassReq.LsGoodClassSearch true "分页获取lsGoodClass表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lsGoodClass/getLsGoodClassPublic [get]
export const getLsGoodClassPublic = () => {
  return service({
    url: '/lsGoodClass/getLsGoodClassPublic',
    method: 'get',
  })
}
